<?php
$filter = !empty($filter) ? $filter : getQuery('filter', array());
$form_class = !empty($form_class) ? $form_class : '';
$dispatch = !empty($dispatch) ? $dispatch : 'user/manage';
$extra = !empty($extra) ? $extra : '';
$put_request_vars = !empty($put_request_vars) ? $put_request_vars : false;
?>
<div class="clear">
	<div class="section-border">

		<form class="<?php echo $form_class ?>" method="get" name="search_form" action="index.php">
			<input type="hidden" value="simple" name="type" />
			<input type="hidden" value="true" name="skip_result_ids_check">
			<input type="hidden" value="<?php echo $dispatch ?>" name="r">
			<?php if ( $put_request_vars ) {
				foreach ($_REQUEST as $k => $v) {
					if(!is_string($v)) continue;
					echo '<input type="hidden" value="'.$v.'" name="'.$k.'" />';
				}
			} ?>
			<?php echo $extra ?>

			<table cellspacing="0" border="0" class="search-header" style="padding-left: 300px;">
				<tbody>
					<tr>
						<td class="nowrap search-field">
							<label>Name:</label>
							<div class="break">
								<input type="text" class="search-input-text" value="<?php echo (!empty($filter['name']) ? $filter['name'] : '') ?>" size="20" name="filter[name]">
								<input type="image" title="Search" alt="Search" class="search-go" src="<?php echo bu() ?>/images/search_go.gif">&nbsp;
							</div>
						</td>
						<td class="nowrap search-field">
							<label>Email:</label>
							<div class="break">
								<input type="text" class="search-input-text" value="<?php echo (!empty($filter['email']) ? $filter['email'] : '') ?>" size="20" name="filter[email]">
								<input type="image" title="Search" alt="Search" class="search-go" src="<?php echo bu() ?>/images/search_go.gif">&nbsp;
							</div>
						</td>
						<td class="buttons-container">
							<span class="submit-button strong "><input type="submit" value="Search" name="r[<?php echo $dispatch ?>]" /></span>
						</td>
					</tr> 
				</tbody>
			</table> 
		</form> 
	</div>
</div>